www.gusucode.com > matlab从零到进阶程序与数据 > matlab从零到进阶程序与数据/第4章 MATLAB程序设计/MyTestNestedFun.m
function r = MyTestNestedFun(input) a = 5; c = sin(input)+tan(input); function y = nestedfun(b) y = a*c+b; end r = nestedfun(5); end